﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="Org_BankAccount_Edit.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Organization.Org_BankAccount_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= numSortCode.UniqueID%>:{required: true,number: true},
					<%= txtBankName.UniqueID%>:{required: true,maxlength: 200},
					<%= txtBankAccount.UniqueID%>:{required: true,maxlength: 200}					
                 },
                 messages:
                 {
					<%= numSortCode.UniqueID%>:{required: "排序号 请输入合适的值",number: "排序号 请输入有效的整数"},
					<%= txtBankName.UniqueID%>:{required: "银行名称 请输入合适的值",maxlength: "银行名称 最多只能输入200个字符"},
					<%= txtBankAccount.UniqueID%>:{required: "银行账号 请输入合适的值",maxlength: "银行账号 最多只能输入200个字符"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">银行账号维护</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:80px;" class="title1">所属公司</td>
			<td><asp:Label runat="server" ID="lblCompany"></asp:Label></td>
		</tr>
		<tr>
			<td class="title1">银行名称</td>
			<td><asp:TextBox ID="txtBankName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">银行账号</td>
			<td><asp:TextBox ID="txtBankAccount" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
        <tr>            
			<td class="title1">是否默认</td>
			<td><asp:CheckBox ID="chkIsDefault" runat="server"></asp:CheckBox>&nbsp;&nbsp;<span style="color:Red">注意：只能设置一个默认账号！</span></td>
        </tr>        
        <tr>
            <td class="title1">序号</td>
			<td><asp:TextBox ID="numSortCode" runat="server"  cssClass="input2" onbeforepaste="numboxPaste();" onkeypress="isInt();" Width="96%"></asp:TextBox></td>
        </tr>
		<tr>			
			<td class="title1">备注</td>
			<td><asp:TextBox ID="txtRemark" runat="server"  cssClass="input2" MaxLength="500" Width="96%" TextMode="MultiLine" Rows="4"></asp:TextBox></td>
		</tr>
        </table>
        <asp:HiddenField runat="server" ID="hidCompanyID" />
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


